// 对外暴露常量路由
export const constantRoutes = [
    {
        path: '/',
        name: 'Layout',
        redirect: '/home',
        component: () => import('@/views/layout/Layout.vue'),
        children: [
            {
                // 个人中心
                path: 'personalCenter',
                name: 'PersonalCenter',
                component: () => import('@/views/layout/PersonalCenter.vue'),
                meta: {
                    title: '个人中心',
                    icon: "UserFilled",
                }
            },
        ],
        meta: {title: 'layout'},
    },
    {
        // 登录路由
        path: '/login',
        name: 'Login',
        component: () => import('@/views/login/Login.vue'),
        meta: {
            title: '登录'
        }
    },
    //其他路由
    {
        path: '/:pathMatch(.*)*',
        name: 'NotFound',
        redirect: '/404'
    },
    {
        path: '/404',
        name: '404',
        component: () => import('@/views/404/Error.vue'),
        meta: {title: '404'}
    }
]

